﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ERP.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng nhập hệ thống</title>
    <link href="Css/main.css" rel="stylesheet" />
    <link href="Css/style.css" rel="stylesheet" />
    <link href="/Img/icon.ico" rel="shortcut icon" type="image/x-icon" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
    <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" Locale="Client" />
        <div id="logo"></div>
        <div id="text-logo">
            Phần mềm quản lý CRM
        </div>
        <!-------------Lay-Out-Login------------->
          <ext:Window 
            ID="WindowLogin" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="Đăng nhập hệ thống"
            Draggable="false"
            Width="350"
            Modal="true"
            BodyPadding="5"
            DefaultButton="btnLogin"
            Layout="Form">
            <Items>
                <ext:TextField 
                    ID="txtUsername" 
                    runat="server" 
                    FieldLabel="Tên đăng nhập:" 
                    AllowBlank="false"
                    BlankText="Tên đăng nhập không được trống"
                    Text=""
                    />
                <ext:TextField 
                    ID="txtPassword" 
                    runat="server" 
                    InputType="Password" 
                    FieldLabel="Mật khẩu:" 
                    AllowBlank="false" 
                    BlankText="Mật khẩu không được trống"
                    Text="">
                </ext:TextField>

                <ext:Container runat="server" Layout="HBoxLayout">
                    <Items>
                        <ext:Checkbox ID="chkRemember" runat="server" MarginSpec="8 8 10 8"></ext:Checkbox>
                        <ext:Label runat="server" Text="Ghi nhớ mật khẩu" Cls="x-lable-login"></ext:Label>
                    </Items>
                </ext:Container>
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="Đăng nhập" Icon="Accept">
                    <DirectEvents>
                        <Click OnEvent="btnLogin_Click">
                            <EventMask ShowMask="true" Msg="Đang tải"  />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
            <Buttons>
                <ext:Button ID="btnCancel" runat="server" Text="Thoát" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnCancel_Click">
                            <EventMask ShowMask="true" Msg="Đang tải"  />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <!-----------------End------------------->
        
        <!-----------Lay-Out-CheckLicense-------->
        <ext:Window ID="WindowLicense" 
            runat="server" 
            Hidden="True"
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="Register License"
            Draggable="false"
            Width="600"
            Modal="true"
            BodyPadding="5"
            DefaultButton="btnLogin"
            Layout="FormLayout">           
            <Items>
               <ext:TextField 
                    ID="txtLicense" 
                    runat="server"                     
                    FieldLabel="License" 
                    AllowBlank="false"
                    BlankText="Vui lòng nhập vào License">
               </ext:TextField>
               <ext:TextField 
                    ID="txtKey" 
                    runat="server"                                        
                    FieldLabel="Key" 
                    AllowBlank="false"
                    BlankText="Vui lòng nhập vào key">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnRegister" runat="server" Text="Đăng ký" Icon="Accept">
                    <DirectEvents>
                        <Click OnEvent="btnRegister_Click">
                            <EventMask ShowMask="true" Msg="Đang kiểm tra"  />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>          
        </ext:Window>
        <!-----------------End------------------->
    </form>
</body>
</html>
